package com.pagepub.flex.factory;

import org.aspectj.lang.ProceedingJoinPoint;



public class FlexSessionInterceptor {

    public Object testAuth(ProceedingJoinPoint point) throws Throwable {

        AMFContext context = AMFContext.getCurrentContext();
      //  HttpServletRequest request = context.getRequest();
        String engineUser=(String)context.getSession().getAttribute("loginUser");
        if(engineUser==null){
        	 return null;
        }
//        if (!SessionUtils.isLogin(request)) {
//            throw new RuntimeException("请您重新登陆!");
//        }
        Object obj = point.proceed();
        return obj;
    }
}
